package parts.mass;

import applet.Simulation;
import applet.forces.GlobalForce;


/**
 * @author Guy Tracy and Jesse Starr
 *
 * Fixed mass extends the mass superclass.
 * It is the same as a mass, except that
 * a FixedMass will not move on the screen,
 * hence the empty update method.
 */
public class FixedMass extends Mass {

    /**
     * Creates a fixed mass.
     *
     * @param id of the mass
     * @param x value of starting point
     * @param y value of starting point
     * @param mass of the mass
     */
    public FixedMass (double id, double x, double y, double mass) {
        super(id, x, y, Math.abs(mass));
    }

    @Override
    public void update (Simulation canvas, double dt, GlobalForce g) {

    }

}
